﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OnLineLogFileServer
{
    public partial class Show : Form
    {
        Dictionary<string, FileStream> dic_fs;
        Dictionary<string, string> dic_file;
        public Show(Dictionary<string, FileStream> dic_fs, Dictionary<string, string> dic_file)
        {
            InitializeComponent();
            this.dic_fs = dic_fs;
            this.dic_file = dic_file;
        }

        private void Show_Load(object sender, EventArgs e)
        {
            this.dataGridView1.DataSource = this.dic_file.Select(p => new { name = p.Key, value = p.Value }).ToList();

            this.dataGridView2.DataSource = this.dic_fs.Select(p => new { name = p.Key, value = p.Value.Name }).ToList();
        }
    }
}
